//package spitter.config;
//
//import spitter.custom.servlet.MyServlet;
//import org.springframework.web.WebApplicationInitializer;
//
//import javax.servlet.ServletContext;
//import javax.servlet.ServletException;
//import javax.servlet.ServletRegistration;
//
//public class MyServletInitializer implements WebApplicationInitializer {
//    @Override
//    public void onStartup(ServletContext servletContext) throws ServletException {
//        //注册Servlet
//        ServletRegistration.Dynamic myServlet = servletContext.addServlet("myServlet", MyServlet.class);
//        //映射Servlet
//        myServlet.addMapping("/custom/xxx");
//    }
//}
